Skip to main content
GET
/
reports
/
datasets
[beta] Get custom report datasets
curl --request GET \
  --url https://api.samsara.com/reports/datasets \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "displayName": "Assets",
      "fields": [
        {
          "dataType": "string",
          "displayName": "Asset: Name",
          "name": "Name",
          "unit": "kilometersPerHour"
        }
      ],
      "hasTimeRangeFilter": true,
      "id": "Assets",
      "timeRangeLimitDays": 31
    }
  ],
  "pagination": {
    "endCursor": "MjkY",
    "hasNextPage": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

ids
string[]

The list of dataset IDs to retrieve the datasets for. Include up to 10 dataset IDs. If not provided, all datasets will be returned.

after
string

If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.

limit
integer
default:100

Maximum number of datasets to return.

Required range: 1 <= x <= 100

Response

OK response.

data
object[]
required

List of datasets.

pagination
object
required

Pagination parameters.